// JavaScript Document
var xmlHttp

function submitIt(strArea)
{ 
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
	var url="input.php";
	var str="";
	str=str+"<name>"+strArea+"</name>";
	
	//url=url+"?p="+strArea;
	xmlHttp.onreadystatechange = stateChanged; 
	xmlHttp.open("POST",url,true)
	xmlHttp.setRequestHeader("Man", "GET url/server.php HTTP/1.1")
 	xmlHttp.setRequestHeader("MessageType", "CALL")
 	xmlHttp.setRequestHeader("Content-Type", "text/xml; charset=utf-8")
 // xmlhttp.setRequestHeader("SOAPAction", "url/server.php")
	xmlHttp.send(str);
 
	alert(str);
}

function test()
{
	xmlHttp=GetXmlHttpObject();
	
	if (xmlHttp==null)
  	{
  		alert ("Your browser does not support AJAX!");
  		return;
  	} 
	var url="input.php";
	xmlHttp.onreadystatechange = stateChanged; 
	xmlHttp.open("POST",url,true);
	xmlHttp.send(null);
}

function stateChanged() 
{ 
	/*if (xmlHttp.readyState==4 ||xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
	}*/
	
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{
		xmlDoc=xmlHttp.responseXML;
		document.getElementById("txtHint").innerHTML = xmlDoc.getElementsByTagName("me")[0].childNodes[0].nodeValue;
	}
}

function GetXmlHttpObject()
{
	var xmlHttp=null;
	try
  	{
  		// Firefox, Opera 8.0+, Safari
  		xmlHttp=new XMLHttpRequest();
  	}
	catch (e)
  	{
  		// Internet Explorer
  		try
    	{
    		xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    	}
  		catch (e)
    	{
    		xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    	}
  	}
	return xmlHttp;
}